package com.javashizhan.demo.restclient.domain;

/**
 * 
 * @Description: 前后端接口的响应结果对象
 * @param <T>
 *
 * @author 飞流
 * @date 2019年8月16日
 * @知识星球 Java实战营
 * @微信公众号 JAVA栈实战营
 * @站点 http://javashizhan.com/
 *
 */
public class ResponseResult<T> {

	public static final int SUCCESS = 0;

	public static final int FAILED = 1;

	private int resultCode = SUCCESS;

	private String resultMsg;

	private T resultObject;

	public int getResultCode() {
		return resultCode;
	}

	public void setResultCode(int resultCode) {
		this.resultCode = resultCode;
	}

	public String getResultMsg() {
		return resultMsg;
	}

	public void setResultMsg(String resultMsg) {
		this.resultMsg = resultMsg;
	}

	public T getResultObject() {
		return resultObject;
	}

	public void setResultObject(T resultObject) {
		this.resultObject = resultObject;
	}
}
